<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.3.1"/>
<title>Private Cloud: CPrivateCloudHelper类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Private Cloud
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.3.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li class="current"><a href="annotated.html"><span>类</span></a></li>
      <li><a href="files.html"><span>文件</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="搜索" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>类列表</span></a></li>
      <li><a href="classes.html"><span>类索引</span></a></li>
      <li><a href="functions.html"><span>类成员</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_c_private_cloud_helper.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>全部</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>类</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>函数</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>变量</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>类型定义</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">类</a> &#124;
<a href="#pub-types">Public 类型</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="class_c_private_cloud_helper-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">CPrivateCloudHelper类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="_private_cloud_8h_source.html">PrivateCloud.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
类</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_c_private_cloud_helper_1_1___c_a_l_l_b_a_c_k___i_t_e_m.html">_CALLBACK_ITEM</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">该结构是回调函数的参数之一。  <a href="struct_c_private_cloud_helper_1_1___c_a_l_l_b_a_c_k___i_t_e_m.html#details">更多...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public 类型</h2></td></tr>
<tr class="memitem:ab558ff594fe00f0cd37a5f70bd6b106a"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab558ff594fe00f0cd37a5f70bd6b106a"></a>
typedef struct <br class="typebreak"/>
<a class="el" href="struct_c_private_cloud_helper_1_1___c_a_l_l_b_a_c_k___i_t_e_m.html">CPrivateCloudHelper::_CALLBACK_ITEM</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_private_cloud_helper.html#ab558ff594fe00f0cd37a5f70bd6b106a">CALLBACK_ITEM</a></td></tr>
<tr class="memdesc:ab558ff594fe00f0cd37a5f70bd6b106a"><td class="mdescLeft">&#160;</td><td class="mdescRight">该结构是回调函数的参数之一。 <br/></td></tr>
<tr class="separator:ab558ff594fe00f0cd37a5f70bd6b106a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a229ce96eeafab8e080605fb2199ec6dc"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a229ce96eeafab8e080605fb2199ec6dc"></a>
typedef struct <br class="typebreak"/>
<a class="el" href="struct_c_private_cloud_helper_1_1___c_a_l_l_b_a_c_k___i_t_e_m.html">CPrivateCloudHelper::_CALLBACK_ITEM</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>LPCALLBACK_ITEM</b></td></tr>
<tr class="separator:a229ce96eeafab8e080605fb2199ec6dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:aa6f7a8ccc64fd6e6ca6f1913060e0300"><td class="memItemLeft" align="right" valign="top">VOID&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_private_cloud_helper.html#aa6f7a8ccc64fd6e6ca6f1913060e0300">RegisterCallback</a> (LPCLOUD_CALLBACK lpCallbackRoutine, DWORD_PTR lpContext)</td></tr>
<tr class="separator:aa6f7a8ccc64fd6e6ca6f1913060e0300"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a735751efa08e4a19a6b0ddf06b67bbcb"><td class="memItemLeft" align="right" valign="top">DWORD&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_private_cloud_helper.html#a735751efa08e4a19a6b0ddf06b67bbcb">BeginSearch</a> (LPCTSTR lpszCloudId=NULL)</td></tr>
<tr class="separator:a735751efa08e4a19a6b0ddf06b67bbcb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac36eb064a3bfda161547f4dc58238b98"><td class="memItemLeft" align="right" valign="top">VOID&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_private_cloud_helper.html#ac36eb064a3bfda161547f4dc58238b98">EndSearch</a> ()</td></tr>
<tr class="separator:ac36eb064a3bfda161547f4dc58238b98"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:ab1e055235527df889918005963321ef6"><td class="memItemLeft" align="right" valign="top">static BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_private_cloud_helper.html#ab1e055235527df889918005963321ef6">GenerateToken</a> (IN LPTSTR lpszTokenMask, IN LPTSTR lpszTokenMask2, IN LPTSTR lpszPassword, OUT LPBYTE lpToken)</td></tr>
<tr class="separator:ab1e055235527df889918005963321ef6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4991d19e1e362d6ae6c689bb6b3a9494"><td class="memItemLeft" align="right" valign="top">static BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_private_cloud_helper.html#a4991d19e1e362d6ae6c689bb6b3a9494">GenerateRandomTokenMask</a> (OUT LPTSTR lpszTokenMask)</td></tr>
<tr class="separator:a4991d19e1e362d6ae6c689bb6b3a9494"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afea9573ee6a91c04a6750c9f208830e2"><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_private_cloud_helper.html#afea9573ee6a91c04a6750c9f208830e2">CRC</a> (char *p, int length)</td></tr>
<tr class="separator:afea9573ee6a91c04a6750c9f208830e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab6851aec57762f1178e6605d7193e8e9"><td class="memItemLeft" align="right" valign="top">static VOID&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_private_cloud_helper.html#ab6851aec57762f1178e6605d7193e8e9">Package</a> (<a class="el" href="struct___c_l_o_u_d_m_s_g___h_d_r.html">LPCLOUDMSG_HDR</a> hdr)</td></tr>
<tr class="separator:ab6851aec57762f1178e6605d7193e8e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acff100df85cb78f344ebb25b9581244e"><td class="memItemLeft" align="right" valign="top">static BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_private_cloud_helper.html#acff100df85cb78f344ebb25b9581244e">Verify</a> (<a class="el" href="struct___c_l_o_u_d_m_s_g___h_d_r.html">LPCLOUDMSG_HDR</a> hdr)</td></tr>
<tr class="separator:acff100df85cb78f344ebb25b9581244e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad03e3b632c32be2549fb6a5596ca2026"><td class="memItemLeft" align="right" valign="top">static BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_private_cloud_helper.html#ad03e3b632c32be2549fb6a5596ca2026">VerifyHeader</a> (<a class="el" href="struct___c_l_o_u_d_m_s_g___h_d_r.html">LPCLOUDMSG_HDR</a> hdr)</td></tr>
<tr class="separator:ad03e3b632c32be2549fb6a5596ca2026"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>私有云的帮助类，包含一些辅助工具 </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a class="anchor" id="a735751efa08e4a19a6b0ddf06b67bbcb"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">DWORD CPrivateCloudHelper::BeginSearch </td>
          <td>(</td>
          <td class="paramtype">LPCTSTR&#160;</td>
          <td class="paramname"><em>lpszCloudId</em> = <code>NULL</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>开启一个搜索私有云的线程，在该线程中我们会向整个局域网组播发送查询私有云的请求，并等待回应，在收到回应后调用调用者注册的回调函数。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">lpszCloudId</td><td>要搜索的私有云的ID，该参数可选（可以为NULL，为NULL时表示搜索整个局域网里的所有私有云）。 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>错误码，同GetLastError()的返回值。 </dd></dl>
<dl class="section see"><dt>参见</dt><dd><a class="el" href="class_c_private_cloud_helper.html#aa6f7a8ccc64fd6e6ca6f1913060e0300">RegisterCallback()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="afea9573ee6a91c04a6750c9f208830e2"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int CPrivateCloudHelper::CRC </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>p</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>length</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>生成CRC循环校验码。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">p</td><td>指向要计算校验码的缓冲区的指针。 </td></tr>
    <tr><td class="paramname">length</td><td>要计算校验码的缓冲区的字节长度。 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回校验码。 </dd></dl>
<dl class="section see"><dt>参见</dt><dd></dd></dl>

</div>
</div>
<a class="anchor" id="ac36eb064a3bfda161547f4dc58238b98"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">VOID CPrivateCloudHelper::EndSearch </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>结束上次开启的搜索私有云的线程，请清理相关资源。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">无。</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>无。 </dd></dl>
<dl class="section see"><dt>参见</dt><dd><a class="el" href="class_c_private_cloud_helper.html#a735751efa08e4a19a6b0ddf06b67bbcb">BeginSearch()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a4991d19e1e362d6ae6c689bb6b3a9494"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">BOOL CPrivateCloudHelper::GenerateRandomTokenMask </td>
          <td>(</td>
          <td class="paramtype">OUT LPTSTR&#160;</td>
          <td class="paramname"><em>lpszTokenMask</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>生成一个随机的Token Mask。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">lpszTokenMask</td><td>输出参数，保存生成的Token Mask。 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功则返回TRUE，否则返回FALSE。 </dd></dl>
<dl class="section see"><dt>参见</dt><dd><a class="el" href="class_c_private_cloud_helper.html#ab1e055235527df889918005963321ef6">GenerateToken()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ab1e055235527df889918005963321ef6"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">BOOL CPrivateCloudHelper::GenerateToken </td>
          <td>(</td>
          <td class="paramtype">IN LPTSTR&#160;</td>
          <td class="paramname"><em>lpszTokenMask</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">IN LPTSTR&#160;</td>
          <td class="paramname"><em>lpszTokenMask2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">IN LPTSTR&#160;</td>
          <td class="paramname"><em>lpszPassword</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">OUT LPBYTE&#160;</td>
          <td class="paramname"><em>lpToken</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>根据输入的Token Mask和Password生成一个Token。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">lpszTokenMask</td><td>第一个Token Mask。 </td></tr>
    <tr><td class="paramname">lpszTokenMask2</td><td>第二个Token Mask。 </td></tr>
    <tr><td class="paramname">lpszPassword</td><td>私有云的访问密码。 </td></tr>
    <tr><td class="paramname">lpToken</td><td>输出参数，保存生成的Token。 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功则返回TRUE，否则返回FALSE。 </dd></dl>
<dl class="section see"><dt>参见</dt><dd><a class="el" href="class_c_private_cloud_helper.html#a4991d19e1e362d6ae6c689bb6b3a9494">GenerateRandomTokenMask()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ab6851aec57762f1178e6605d7193e8e9"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">VOID CPrivateCloudHelper::Package </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct___c_l_o_u_d_m_s_g___h_d_r.html">LPCLOUDMSG_HDR</a>&#160;</td>
          <td class="paramname"><em>hdr</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>对输入的消息进行打包，计算并设置校验码等，所有的消息都必须经过打包才能发送。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">hdr</td><td>指向要打包的消息头。 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>无。 </dd></dl>
<dl class="section see"><dt>参见</dt><dd></dd></dl>

</div>
</div>
<a class="anchor" id="aa6f7a8ccc64fd6e6ca6f1913060e0300"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">VOID CPrivateCloudHelper::RegisterCallback </td>
          <td>(</td>
          <td class="paramtype">LPCLOUD_CALLBACK&#160;</td>
          <td class="paramname"><em>lpCallbackRoutine</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">DWORD_PTR&#160;</td>
          <td class="paramname"><em>lpContext</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>注册回调函数，该回调函数会在收到网络中其它设备返回的消息时调用。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">lpCallbackRoutine</td><td>指向回调函数的地址，由调用者提供。 </td></tr>
    <tr><td class="paramname">lpContext</td><td>再调用回调函数时，会把该参数传给回调函数，该参数由调用者提供。 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>无。 </dd></dl>
<dl class="section see"><dt>参见</dt><dd><a class="el" href="class_c_private_cloud_helper.html#a735751efa08e4a19a6b0ddf06b67bbcb">BeginSearch()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="acff100df85cb78f344ebb25b9581244e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">BOOL CPrivateCloudHelper::Verify </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct___c_l_o_u_d_m_s_g___h_d_r.html">LPCLOUDMSG_HDR</a>&#160;</td>
          <td class="paramname"><em>hdr</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>验证消息包是否合法，包括验证CRC。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">hdr</td><td>指向要验证的消息头。 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>通过返回TRUE，否则返回FALSE。 </dd></dl>
<dl class="section see"><dt>参见</dt><dd></dd></dl>

</div>
</div>
<a class="anchor" id="ad03e3b632c32be2549fb6a5596ca2026"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">BOOL CPrivateCloudHelper::VerifyHeader </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct___c_l_o_u_d_m_s_g___h_d_r.html">LPCLOUDMSG_HDR</a>&#160;</td>
          <td class="paramname"><em>hdr</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>验证消息包的头部是否合法，只针对消息头部进行验证，CRC不验证。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">hdr</td><td>指向要验证的消息头。 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>通过返回TRUE，否则返回FALSE。 </dd></dl>
<dl class="section see"><dt>参见</dt><dd></dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>F:/cvs/projects/rd1/taiping/Cloud/<a class="el" href="_private_cloud_8h_source.html">PrivateCloud.h</a></li>
<li>F:/cvs/projects/rd1/taiping/Cloud/PrivateCloud.cpp</li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_c_private_cloud_helper.html">CPrivateCloudHelper</a></li>
    <li class="footer">生成于 2013年 五月 3日 星期五 11:19:07 , 为 Private Cloud使用 
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.3.1 </li>
  </ul>
</div>
</body>
</html>
